package com.crk.yiyuanguahao.service;

import com.crk.yiyuanguahao.entity.UserRemark;
import com.crk.yiyuanguahao.util.Page;
import com.crk.yiyuanguahao.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author
 * @description:
 * @date 2020/3/26
 */
public interface UserRemarkService {
    /**
     * 保存用户留言
     * @param userRemark 用户留言
     * @return
     */
    public ResponseResult saveUserRemark(UserRemark userRemark);

    /**
     * 删除用户留言
     * @param id
     * @return
     */
    public ResponseResult deleteUserRemark(Integer id);

    /**
     * 查询用户留言
     * @param id
     * @return
     */
    public ResponseResult getUserRemark(Integer id);

    /**
     * 查询用户留言列表
     * @param status 审核状态
     * @param pageInfo 分页
     * @return
     */
    public ResponseResult queryUserRemarkPage(int status,Page pageInfo);

    /**
     * 审批
     * @param id
     * @param status
     * @return
     */
    public ResponseResult approval(Integer id,Integer status);

    public ResponseResult queryLastUserRemark();

    public ResponseResult getDetailInfo(Integer id);

    public ResponseResult saveReplay(Integer id,String replay);
}
